Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.6K
Visualizações
"[nodemon] clean exit - waiting for changes before restart": while trying to start the server

I keep running into this error while trying to run my code...

[nodemon] 2.0.15
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server.js`
[nodemon] clean exit - waiting for changes before restart

This is the code that I'm trying to run:

import app from "./server";
import mongodb from "mongodb";
import dotenv from "dotenv";

//configuiring dotenv for use
dotenv.config();
const MongoClient = mongodb.MongoClient;

const port = process.env.PORT || 8000; // if the port(5000 in this one) from dotenv file cant be accesed then access 8000

MongoClient.connect(process.env.RESTREVIEWS_DB_URI, {
  poolsize: 50, //max no of users at a time
  wtimeout: 2500, //timeout after 2500 ms
  useNewUrlParse: true,  
})
  .catch((err) => {
    //if connection fails
    console.error(err.stack);
    process.exit(1);
  })
  .then(async (client) => {
    app.listen(port, () => {
      console.log(`listening on the port ${port}`);
    });
  });

// --   AND WE ARE DONE WITH THE DATABASE AND HAVE STARTED OUR WEB SERVER  --

I've tried changing the Execution policy to Unrestricted mode and Remote but it still doesn't work. It would be great if someone could help me figure out what I'm doing wrong!

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Try reverting nodemon version to 1.2.1 will fix the problem.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda